use bevy::ecs::component::Component;

#[derive(Component)]
#[require(Health)]
pub struct Player;

#[derive(Component)]
pub struct Enemy;

#[derive(Component)]
pub struct Health(pub f32);

impl Default for Health {
    fn default() -> Self {
        Self(100.0)
    }
}

#[derive(Component)]
pub struct Power(pub f32);

#[derive(Component)]
pub struct Speed(pub f32);

#[derive(Component)]
pub struct Position {
    pub x: f32,
    pub y: f32,
}


#[derive(Component)]
pub struct Question {
    pub content: String,
    pub opts: Vec<QuestionOpt>
}

pub struct QuestionOpt {
    pub val: u8,
    pub name: String,
}


#[derive(Component)]
pub struct Answer(pub u8);